<script>
export default {
  name: "filterPage",
  data() {
    return {
      msg: '我TMD你',
      msg1: '今天周四'
    }
  },
  methods: {},
  // 私有过滤器
  filters: {
    ownFilter(data, format) {
      console.log(data, format)
    }
  }
}
</script>

<template>
  <div>
    过滤器
    {{ msg }}
    <!--  过滤器的返回值-->
    <p>{{ msg | setMsg(123) }}</p>
    <!--suppress JSVoidFunctionReturnValueUsed -->
    <p>{{ msg | setMsg(123) | setMsg1('这是第二个') }}</p>
    <!--suppress JSVoidFunctionReturnValueUsed -->
    <p>{{ msg1 | ownFilter('这是私有过滤器') }}</p>
    <!--  预留展示区域  -->
    <router-view></router-view>
    <!-- <router-view name="courseIndex"></router-view> -->
    <router-view name="keyBoardModifiers"></router-view>
    <router-view name="brandManagement"></router-view>
  </div>
</template>

<style scoped lang="less">

</style>